package com.itheima.demo003;

public class test15 {
    public static void main(String[] args) {
        //1.获取一个手机号码
        String phoneNumber = "19846071311";

        //2.截取手机号码的前面三位
        String start = phoneNumber.substring(0,3);

        //3.截取手机号码的后面四位
        String end = phoneNumber.substring(7);

        //4.拼接
        String result = start + "****" + end;

        //5.打印结果
        System.out.println(result);
    }
}
